home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / RE>Re AutoScroll < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.4 KB  |  [TEXT/ttxt]

  1. Subject:     RE>Re: AutoScroll
  2. Sent:        6/13/96 5:29 PM
  3. Received:    6/13/96 5:41 PM
  4. From:        Rob Cope, rob@eclipse.cpcn.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8.  
  9.                                                                  Date: 6/13/96
  10. Subject:  RE>Re: AutoScroll                                     Time:  7:57 PM
  11. Henri,
  12.  
  13. Thanks for you reply.
  14.  
  15. >>1) I had wanted to implement the auto scroll in such a way that it scrolls 
  16. >>faster the father the away the user drags.  It appears I can get it to 
  17. >>work for drag selection and resizing, but not for dragging content.  This 
  18. >>is because the FW_CDropTracker is destroyed if the user drags outside the 
  19. >>frame.  As far as I can tell, there is no way around this limitation -- is 
  20. >>that correct.
  21. >>
  22.  
  23. >This would be strange. If the user tries to drag something out of your 
  24. >part (lets say on the desktop) do you want your content to continue 
  25. >scrolling while the user is looking for a place to drop? I can imagine 
  26. >that to be very annoying. You should not have any autoscrolling during a 
  27. >drag when your are outside of the frame. 
  28.  
  29. I agree this could get strange, but I had a UI I wanted to test out.  My idea was to only start autoscrolling if the user paused in the autoscroll area (scrollbars, title bar, or 15 pixels from left).  If the part was autoscrolling when the drag left the frame, I wanted to speed it up proportionally to how to far from the frame the user dragged.  If they just dragged out of the frame without pausing in the autoscroll area, no scrolling would take place.  However, there does not appear to a legal way in OpenDoc to get the mouse position during a drag if the drag is not within your part.  Is that correct?
  30.  
  31. >>3) Thinking that autoscrolling to the left would be rare in my part 
  32. >>anyway, I made my AutoScrollInset -1 so that it would start scrolling 1 
  33. >>pixel outside the content view (i.e. in the scroll bars like Finder). It 
  34. >>worked fine for drag selection and resizing, but not for dragging.  Any 
  35. >>idea why?
  36.  
  37. >Might be the same reason as in 1)
  38.  
  39. I looked in to this further and it is slightly different than 1.  In this case, FW_DroppableFrame::DragWithIn only calls the tracker to track if it is within the content view.  Fortunately, I can solve this by overriding DragWithin in my frame.
  40.  
  41. Thanks again,
  42.  
  43. Rob Cope
  44. Eclipse Services
  45.  
  46.